package cn.tedu.sims.mapper;

import cn.tedu.sims.pojo.dto.ProjectDTO;
import cn.tedu.sims.pojo.dto.ProjectInformationDTO;
import cn.tedu.sims.pojo.dto.ProjectRejectDTO;
import cn.tedu.sims.pojo.dto.ProjectYearDTO;
import cn.tedu.sims.pojo.entity.Project;
import cn.tedu.sims.pojo.entity.ProjectInformation;
import cn.tedu.sims.pojo.vo.ProjectInformationVO;
import cn.tedu.sims.pojo.vo.ProjectVO;
import org.apache.coyote.http11.filters.SavedRequestInputFilter;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectMapper {
    void insertProject(Project project);

    void deleteById(Long id);

    List<ProjectVO> selectByYear(ProjectYearDTO project);

    void deleteByIds(Long[] ids);

    void stateOkById(long id);

    void stateFailById(long id);

    void update(Project project);

    int countByReportProject(String reportProject,String reportType);

    ProjectVO getBtId(long projectId);

    ProjectVO selectById(Long id);

    List<ProjectVO> projectSelect(String reportType, Long id);

    int countByReportProjectAndNotId(String reportProject, String reportType, Long id);

    int selectCountByType(String s);

    String selectProjectPass();
    String selectUnitPass();
    String selectBasePass();

    List<ProjectVO> selectByAudit();
}